package com.crane.oss.enums;

/**
 * 使用状态
 * 
 * @author tyh
 *
 */
public enum UseStatusEnum {
	
	USE_1(1, "在线"),
	USE_2(2, "离线"),
	USE_3(3, "已连接"),
	USE_4(4, "未连接");

	private Integer type;

	private String remark;

	private UseStatusEnum(Integer type, String remark) {
		this.type = type;
		this.remark = remark;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static String getUseStatusName(Integer type) {
		for (UseStatusEnum useStatusEnum : UseStatusEnum.values()) {
			if (useStatusEnum.getType().equals(type)) {
				return useStatusEnum.getRemark();
			}
		}
		return "";
	}
}
